package com.twq.rules.rule1

/**
 * Created by tangweiqun on 2017/11/18.
 */
object Implicits {
  implicit val doubleMonoid = new Monoid[Double] {

    def add(x: Double, y: Double): Double = x + y

    def unit: Double = 0
  }
}

object implicitsOther {
  implicit val doubleMonoid = new Monoid[Double] {

    def add(x: Double, y: Double): Double = x + y

    def unit: Double = 0
  }
}
